#!/bin/sh
# Build and run the tomcat.

mvn clean install -Passembly

rm -rf ./target/war-unzipped

unzip ./target/lib-mk-standalone-tomcat-resources.dir/mk-maps-war-0.3-SNAPSHOT.war -d ./target/war-unzipped

#cp ./target/war-unzipped/WEB-INF/lib/slf4j-api-1.5.8.jar ./target/mk-tomcat/lib/
#cp ./target/war-unzipped/WEB-INF/lib/slf4j-log4j12-1.5.8.jar ./target/mk-tomcat/lib/
#cp ./target/war-unzipped/WEB-INF/lib/log4j-1.2.14.jar ./target/mk-tomcat/lib/


cd ./target/mk-tomcat/bin

chmod +x *.sh

